package org.example.kidscode.repository;

import org.example.kidscode.entity.ClassCard;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDate;
import java.util.List;

public interface ClassCardRepository extends JpaRepository<ClassCard, String> {
    List<ClassCard> findByStudentId(String studentId);
    List<ClassCard> findByExpireDateBefore(LocalDate date);
}